<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    html, body {
      padding: 0;
      margin: 0;
      overflow: hidden;
    }
    #l7-map {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 100%;
    }
  </style>
  <script src="https://unpkg.com/@antv/l7"></script>
</head>
<body>
  <div id="l7-map"></div>
  <script>
    const scene = new L7.Scene({
      id: 'l7-map',
      map: new L7.GaodeMap({
        style: 'dark',
        center: [120.1, 30.2],
        pitch: 0, // 看地图的角度，60
        zoom: 6, // 12
        token: 'e8653883477c1e38d190463340771816'
      })
    })

    scene.on('loaded', () => {
      fetch('https://gw.alipayobjects.com/os/basement_prod/337ddbb7-aa3f-4679-ab60-d64359241955.json').then(res => res.json()).then(data => {
        data.features = data.features.filter(item => item.properties.capacity > 3000)
        const pointLayer = new L7.PointLayer({}).source(data).shape('circle').size('capacity', [0, 16]).color('capacity', ['#34B6B7', '#4AC5AF', '#5FD3A6', '#7BE39E', '#A1EDB8', '#CEF8D6']).style({
          strokeWidth: 0,
          opacity: 0.5
        }).active(true)
        scene.addLayer(pointLayer)
      })
    })
  </script>
</body>
</html>